/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * DetailsComplaint.java
 *
 * Created on May 6, 2010, 3:30:13 PM
 */

package com.aptech.BugRS.ui.main;

/**
 *
 * @author KISS
 */
public class DetailsComplaint extends javax.swing.JDialog {

    /** Creates new form DetailsComplaint */
    public DetailsComplaint(java.awt.Frame parent, boolean modal) {
        super(parent, modal);
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {
        java.awt.GridBagConstraints gridBagConstraints;

        btngResponse = new javax.swing.ButtonGroup();
        jPanel1 = new javax.swing.JPanel();
        lblDispatchNo = new javax.swing.JLabel();
        lblProductName = new javax.swing.JLabel();
        lblDateOrder = new javax.swing.JLabel();
        lblWarranty = new javax.swing.JLabel();
        lblTitle = new javax.swing.JLabel();
        lblContent = new javax.swing.JLabel();
        tfDispatchNo = new javax.swing.JTextField();
        tfProductName = new javax.swing.JTextField();
        txtTitle = new javax.swing.JTextField();
        scr = new javax.swing.JScrollPane();
        taContent = new javax.swing.JTextArea();
        tfWarranty = new javax.swing.JTextField();
        tfDateOrder = new javax.swing.JTextField();
        lblResponse = new javax.swing.JLabel();
        src2 = new javax.swing.JScrollPane();
        taResponse = new javax.swing.JTextArea();
        jPanel2 = new javax.swing.JPanel();
        rdGood = new javax.swing.JRadioButton();
        rdBad = new javax.swing.JRadioButton();
        btnCommit = new javax.swing.JButton();
        jPanel3 = new javax.swing.JPanel();
        btnBack = new javax.swing.JButton();
        btnForward = new javax.swing.JButton();
        btnCancel = new javax.swing.JButton();
        lblimage = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        getContentPane().setLayout(new java.awt.FlowLayout());

        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Details of Complaint", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 13), new java.awt.Color(0, 0, 204))); // NOI18N
        jPanel1.setLayout(new java.awt.GridBagLayout());

        lblDispatchNo.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblDispatchNo.setText("Dispatch No:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        jPanel1.add(lblDispatchNo, gridBagConstraints);

        lblProductName.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblProductName.setText("Product Name:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 2;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        jPanel1.add(lblProductName, gridBagConstraints);

        lblDateOrder.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblDateOrder.setText("Date Order:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        jPanel1.add(lblDateOrder, gridBagConstraints);

        lblWarranty.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblWarranty.setText("Warranty:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 2;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        jPanel1.add(lblWarranty, gridBagConstraints);

        lblTitle.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblTitle.setText("Title:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 3;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        jPanel1.add(lblTitle, gridBagConstraints);

        lblContent.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblContent.setText("Content:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 4;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHEAST;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        jPanel1.add(lblContent, gridBagConstraints);

        tfDispatchNo.setColumns(20);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        jPanel1.add(tfDispatchNo, gridBagConstraints);

        tfProductName.setColumns(20);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 3;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        jPanel1.add(tfProductName, gridBagConstraints);

        txtTitle.setColumns(20);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 3;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        jPanel1.add(txtTitle, gridBagConstraints);

        scr.setPreferredSize(new java.awt.Dimension(200, 150));

        taContent.setColumns(20);
        taContent.setRows(5);
        scr.setViewportView(taContent);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 4;
        gridBagConstraints.gridwidth = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        jPanel1.add(scr, gridBagConstraints);

        tfWarranty.setColumns(20);
        tfWarranty.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                tfWarrantyActionPerformed(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 3;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        jPanel1.add(tfWarranty, gridBagConstraints);

        tfDateOrder.setColumns(20);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        jPanel1.add(tfDateOrder, gridBagConstraints);

        lblResponse.setFont(new java.awt.Font("Tahoma", 0, 13));
        lblResponse.setText("Response:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 5;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHEAST;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        jPanel1.add(lblResponse, gridBagConstraints);

        taResponse.setColumns(20);
        taResponse.setRows(5);
        src2.setViewportView(taResponse);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 5;
        gridBagConstraints.gridwidth = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        jPanel1.add(src2, gridBagConstraints);

        rdGood.setFont(new java.awt.Font("Tahoma", 0, 13));
        rdGood.setText("Good");
        jPanel2.add(rdGood);

        rdBad.setFont(new java.awt.Font("Tahoma", 0, 13));
        rdBad.setText("Bad");
        jPanel2.add(rdBad);

        btnCommit.setText("Commit");
        btnCommit.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnCommitActionPerformed(evt);
            }
        });
        jPanel2.add(btnCommit);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 3;
        gridBagConstraints.gridy = 5;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        jPanel1.add(jPanel2, gridBagConstraints);

        btnBack.setText("Back");
        jPanel3.add(btnBack);

        btnForward.setText("Forward");
        jPanel3.add(btnForward);

        btnCancel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Icons/Cancel-2-16x16.png"))); // NOI18N
        btnCancel.setText("Cancel");
        jPanel3.add(btnCancel);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 6;
        gridBagConstraints.gridwidth = 4;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        jPanel1.add(jPanel3, gridBagConstraints);

        lblimage.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Icons/Customers.png"))); // NOI18N
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 3;
        gridBagConstraints.gridy = 4;
        jPanel1.add(lblimage, gridBagConstraints);

        getContentPane().add(jPanel1);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void tfWarrantyActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_tfWarrantyActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_tfWarrantyActionPerformed

    private void btnCommitActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnCommitActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_btnCommitActionPerformed

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                DetailsComplaint dialog = new DetailsComplaint(new javax.swing.JFrame(), true);
                dialog.addWindowListener(new java.awt.event.WindowAdapter() {
                    public void windowClosing(java.awt.event.WindowEvent e) {
                        System.exit(0);
                    }
                });
                dialog.setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnBack;
    private javax.swing.JButton btnCancel;
    private javax.swing.JButton btnCommit;
    private javax.swing.JButton btnForward;
    private javax.swing.ButtonGroup btngResponse;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JLabel lblContent;
    private javax.swing.JLabel lblDateOrder;
    private javax.swing.JLabel lblDispatchNo;
    private javax.swing.JLabel lblProductName;
    private javax.swing.JLabel lblResponse;
    private javax.swing.JLabel lblTitle;
    private javax.swing.JLabel lblWarranty;
    private javax.swing.JLabel lblimage;
    private javax.swing.JRadioButton rdBad;
    private javax.swing.JRadioButton rdGood;
    private javax.swing.JScrollPane scr;
    private javax.swing.JScrollPane src2;
    private javax.swing.JTextArea taContent;
    private javax.swing.JTextArea taResponse;
    private javax.swing.JTextField tfDateOrder;
    private javax.swing.JTextField tfDispatchNo;
    private javax.swing.JTextField tfProductName;
    private javax.swing.JTextField tfWarranty;
    private javax.swing.JTextField txtTitle;
    // End of variables declaration//GEN-END:variables

}
